package cn.heygod.graywhale.runtime.task.def;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @className: GwTaskFlowDefRuntime
 * @author: Simon
 * @description: TODO
 * @date: 2023/11/22 12:04
 * @version: 1.0
 */
@Data
public class TaskFlowDef {

    private String id ;

    private String name;

    private String input;

    private String output;

    private List<TaskNodeDef> nodes = new ArrayList<>();

    public void addNode(TaskNodeDef nodeDef){
        this.nodes.add(nodeDef);
    }


}
